 $(function(){
	   $.ajax({
		   url:contextPath+'production/list',
		   type:'post',
		   async:false,
		   success:function(data){
			   $(".select_down").empty();
			   for (var i = 0; i < data.length; i++) {
				   if(protype==data[i].id && protype!=""){
				  var content = '<option value="'+data[i].id+'" selected="selected">'+data[i].name+'</option>';
				   }
				   else{
					   var content = '<option value="'+data[i].id+'">'+data[i].name+'</option>';
				   }
				  
				$(".select_down").append(content);
			   }
		   }
		   });
	   loadlist();
	   });
   
   function loadlist(){
	   var type = $(".select_down").val();
	   $.ajax({
		   url:contextPath+'productioninfo/list',
		   type:'post',
		   data:{type:type},
		   success:function(list){
			   $(".pwsj_right_byq_divbox").empty();
			   for (var i = 0; i < list.length; i++) {
				 var content = '<ul class="byq_cont_ul">'+
				     '<li style="width:8%;">'+(i+1)+'</li>'+
				    '<li style="width:14%;">'+list[i].system+'</li>'+
					'<li style="width:14%;">'+list[i].version+'</li>'+
					'<li style="width:14%;">'+(list[i].size==null?"":list[i].size)+'</li>'+
					'<li style="width:14%;">'+(list[i].language==null?"":list[i].language)+'</li>'+
					'<li style="width:20%;">'+new Date(list[i].updatetime)
				.format("yyyy-MM-dd")+'</li>'+
					'<li style="width:14%;border-right: none;">'+
					'<a href="'+contextPath+'admin/web/production/productioninfo.jsp?id='+list[i].id+'" class="detail_a_addlines">查看</a>'+
					'<a href="'+contextPath+'admin/web/production/updateproduction.jsp?id='+list[i].id+'" class="detail_a_addlines">修改</a>'+
					'</li>'+
					'</ul>';
					$(".pwsj_right_byq_divbox").append(content);
			}}
	   });
   }